package edu.sctu.practice.class01.huangtianlin.assign3.two;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Circle extends GeomertricObject{

    double radio;
    double area;
    double Perimeter;
    String color;
    public static final double  PI = 3.14;

    public Circle(String color,int radio) {
        super(color);

        this.color = color;
        this.radio = radio;

    }

    @Override
    public double findArea() {

        area = radio*radio*PI;

        return area;

    }

    @Override
    public double findPerimeter() {

        Perimeter  = 2*PI*radio;

        return  Perimeter;
    }

    @Override
    public void inputInfo() {

        System.out.println("颜色："+color+"半径："+radio);

    }
}
